home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 1
/
CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso
/
Aminet
/
comm
/
tcp
/
AmigaTCP.lha
/
AmigaTCP
/
src
/
session.h
< prev
next >
Wrap
C/C++ Source or Header
|
1989-06-24
|
494b
|
22 lines
extern int mode;
#define CMD_MODE 1 /* Command mode */
#define CONV_MODE 2 /* Converse mode */
/* Session control structure; only one entry is used at a time */
struct session {
int type;
#define FREE 0
#define TELNET 1
#define FTP 2
union {
struct ftp *ftp;
struct telnet *telnet;
} cb;
int (*parse)(); /* Where to hand typed input when conversing */
};
#define NULLSESSION (struct session *)NULL
extern struct session sessions[];
extern struct session *current;
extern int16 lport;